import Vue from "vue"
import router from "./router"
import store from "./store"
import Bus from "@/utils/bus"
/**
 * @description 引入element-ui包和样式文件,并对样式进行符合项目的重构
 */
import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css"
Vue.use(ElementUI, {
  size: "small"
})

/* eslint-disable */
import "font-awesome/css/font-awesome.min.css"
import "@/styles/index.scss"

/**
 * @description 处理同级组件的事件车,依赖发布订阅模式
 */
Vue.prototype.$bus = Bus;

/**
 * @description 引入mock -- 只有不是生产环境时才可以引入
 */
if (!process.env.NODE_ENV !== "production") {
  require("./mock");
};


import App from "./App.vue"
import "./registerServiceWorker"

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app")
